from django.urls import path
from .views import PersonListView, PersonDetailView
urlpatterns = [
    path('', PersonListView.as_view(), name='person_list'),
    path('person/<int:pk>/', PersonDetailView.as_view(), name='person_detail'),
]

urlpatterns += [
    path('person/add/', PersonCreate.as_view(), name='person_add'),
    path('person/edit/<int:pk>/', PersonUpdate.as_view(), name='person_edit'),
    path('person/delete/<int:pk>/', PersonDelete.as_view(), name='person_delete'),
]

urlpatterns += [
    path('person/month/<int:year>/<int:month>/', PersonMonthArchiveView.as_view(), name='person_archive_month'),
    path('person/week/<int:year>/<int:week>/', PersonWeekArchiveView.as_view(), name='person_archive_week'),
]